no-bdb-ABI-second-guessing
authorDebian OpenLDAP Maintainers <pkg-openldap-devel@lists.alioth.debian.org>
Thu, 8 Dec 2016 14:47:46 +0000 (14:47 +0000)
committerRaspbian forward porter <root@raspbian.org>
Thu, 8 Dec 2016 14:47:46 +0000 (14:47 +0000)
Gbp-Pq: Name no-bdb-ABI-second-guessing

servers/slapd/back-bdb/init.c

index 10c3246e80810aed9f65ae81d82b83b45647bf65..4d3537b83d060c37f0a7676a302835472d0154cf 100644 (file)
@@ -768,7 +768,7 @@ bdb_back_initialize(
        bi->bi_controls = controls;
 
        {       /* version check */
-               int major, minor, patch, ver;
+               int major, minor, patch;
                char *version = db_version( &major, &minor, &patch );
 #ifdef HAVE_EBCDIC
                char v2[1024];
@@ -782,17 +782,6 @@ bdb_back_initialize(
                version = v2;
 #endif
 
-               ver = (major << 24) | (minor << 16) | patch;
-               if( ver != DB_VERSION_FULL ) {
-                       /* fail if a versions don't match */
-                       Debug( LDAP_DEBUG_ANY,
-                               LDAP_XSTRING(bdb_back_initialize) ": "
-                               "BDB library version mismatch:"
-                               " expected " DB_VERSION_STRING ","
-                               " got %s\n", version, 0, 0 );
-                       return -1;
-               }
-
                Debug( LDAP_DEBUG_TRACE, LDAP_XSTRING(bdb_back_initialize)
                        ": %s\n", version, 0, 0 );
        }